<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="dao.common.*,model.common.*,java.util.*,action.common.*"
	pageEncoding="UTF-8"%>
<%
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<base href="<%=basePath%>">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<link rel="stylesheet" type="text/css" href="css/StockPlan1.css" />
<title>进货计划</title>
</head>
<body>
<!-- <script>
function aa(goodsStockId){
   document.getElementById("goodsStockId").value=goodsStockId;
   document.form.action="servlet.Delete";   //后台处理页面
 document.form.submit();
}
</script>
 -->
<!-- 	<form action="ShowReport" method="post">
<input type="submit" value="刷新">
	</form> -->
	<img src="img/未标题-1.jpg" width="1080" height="100" />
	<div id="Home">
		<ul>
			<li><a href="employeeHome.jsp">首页</a></li>
			<li><a>用户管理</a></li>
			<li><a>进货管理</a>
				<ul>
					<li><a href="stockplan1.jsp">进货计划</a></li>
					<li><a href="loggingnewgoods1.jsp">新商品录入</a></li>
				</ul></li>
			<li><a>库存管理</a>
				<ul>
					<li><a href="repertory1.jsp">库存查询</a></li>
				</ul></li>
			<li><a>销售管理</a>
				<ul>
					<li><a href="sellLogging.jsp">销售录入</a></li>
				</ul></li>
			<li><a>系统</a>
				<ul>
					<li><a href="systemMessage1.jsp">系统报告</a></li>
				</ul></li>
	</div>

	<table class="datalist" id="repertory">


		<caption>
			<strong><h1>进货计划表</h1></strong>
		</caption>
		<tr>
			<th scope="col"><strong>商品编号</strong></th>
			<th scope="col"><strong>商品名称</strong></th>
			<th scope="col"><strong>商品进价</strong></th>
			<th scope="col"><strong>商品售价</strong></th>
			<th scope="col"><strong>商品总金额</strong></th>
			<th scope="col"><strong>支付日期</strong></th>
			<th scope="col"><strong>购买日期</strong></th>
			<th scope="col"><strong>送货日期</strong></th>
			<th scope="col"><strong>生产日期</strong></th>
			<!-- <th scope="col"><strong>进行操作</strong></th> -->
		</tr>

		<%
 List<StockPlan> list=new ArrayList<StockPlan>(); 
	StockPlanAction act=new StockPlanAction();
	list=act.query(null);
	request.getSession().setAttribute("StockPlan",list); 
    
  if(session.getAttribute("StockPlan")!=null){
	  list=(List)session.getAttribute("StockPlan");
	  if(list.size()>0){
		  StockPlan sp;
		  for(int i=0;i<list.size();i++){
			  sp=new StockPlan();
		         sp=(StockPlan)list.get(i);
		         %>
		<tr>
			<td scope="col"><strong><%=sp.getGoodsStockId()%></strong></td>
			<td scope="col"><strong><%=sp.getGoodsName() %></strong></td>
			<td scope="col"><strong><%=sp.getGoodsUnitPrice() %></strong></td>
			<td scope="col"><strong><%=sp.getGoodsPrice() %></strong></td>
			<td scope="col"><strong><%=sp.getGoodsSum() %></strong></td>
			<td scope="col"><strong><%=sp.getPaymentDate() %></strong></td>
			<td scope="col"><strong><%=sp.getPurcharseDate() %></strong></td>
			<td scope="col"><strong><%=sp.getDeliveryDate() %></strong></td>
			<td scope="col"><strong><%=sp.getGoodsProductionDate() %></strong></td>
			<%-- <td scope="col">
			<strong> <a href="Deletestockplan?id=<%=sp.getGoodsStockId()%>" style="width:40px;display:block;float:left"/>删除</a>
			         <a href="editStockPlan.jsp?id=<%=sp.getGoodsStockId()%> "style="width:40px;display:block;float:right"/>修改</a>
			</strong>
			</td> --%>
		</tr>

		<%
		  }
	  }
}

%>
  <tr class="altrow">       <!-- 偶数行 -->  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td>  
        <td>&nbsp;</td> 
    </tr>  
	</table>
	<!-- <form action="addStockPlan.jsp">
	<input type="submit" value="增加计划" style="width:60px;display:block;float:left; margin:10px 20px 20px 210px">
	</form> -->
<!-- 	<a href="addStockPlan.jsp?" style="width:35px;display:block;float:left; margin:10px 20px 20px 210px"><h4>增加</h4></a>
 -->
 </body>
</html>